const {ElMessage} = require("element-plus");

export default {
    errTip: function(message) {
        ElMessage({
            showClose: true,
            message: message,
            type: 'error',
        })
    },
    successTip: function(message) {
        ElMessage({
            showClose: true,
            message: message,
            type: 'success',
        })
    },
    warningTip: function(message) {
        ElMessage({
            showClose: true,
            message: message,
            type: 'warning',
        })
    },
    infoTip: function(message) {
        ElMessage({
            showClose: true,
            message: message,
            type: 'info',
        })
    },
}